package com.heima.mapper;

import com.heima.pojo.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface RoleMapper {
    @Select("select * from tb_role where role_id=#{roleId}")
    Role roleById(Integer roleId);
    @Select("select * from tb_role")
    List<Role> selectList();
}
